port = other_config.get("port", 0)
node = other_config.get("node", -1)
ssl = other_config.get("ssl", None)
+ chs = other_config.get("change_home_server", False)
xendom.domain_migrate(xeninfo.getDomid(), destination_url,
- bool(live), port, node, ssl)
+ bool(live), port, node, ssl, bool(chs))
return xen_api_success_void()
def VM_save(self, _, vm_ref, dest, checkpoint):
['live', 'int'],
['port', 'int'],
['node', 'int'],
- ['ssl', 'int']])
+ ['ssl', 'int'],
+ ['change_home_server', 'bool']])
return fn(req.args, {'dom': self.dom.domid})
def op_pincpu(self, _, req):
other_config = {
"port": opts.vals.port,
"node": opts.vals.node,
- "ssl": opts.vals.ssl
+ "ssl": opts.vals.ssl,
+ "change_home_server": opts.vals.change_home_server
}
server.xenapi.VM.migrate(vm_ref, dst, bool(opts.vals.live),
other_config)